#include "OpcodeContainer.h"


/*********************************************************

COPContainerBase

***********************************************************/

COPContainerBase::~COPContainerBase()
{

}

//存储容器节点，返回容器头节点
COPContainerBase*& COPContainerBase::Head()
{
	static COPContainerBase *containerHead = 0;
	return containerHead;
}



void COPContainerBase::Initialize()
{
	//初始化容器
	COPContainerBase* currContainer = Head();
	while (currContainer != nullptr)
	{
		(*currContainer->m_containtFunc)();
		currContainer = currContainer->m_nextContainer;
	}
}

//此函数为虚函数，目的是为了让编译器对继承该类并实现该函数的类进行检查
void COPContainerBase::DoNothing()const
{
}


